import React, { Component } from 'react'

export default class c extends Component {
    constructor(props) {
        super(props)
    }

    bbb = () => {
        console.log("父组件调用 子组件 打印")
    }
    componentDidMount() {
        this.props.onRef(this)  // 将 this 传回去
    }
  render() {
    return (
      <div>c</div>
    )
  }
}
